package cn.com.guage.guc.lock;
class PrintString{
	
	private int i = 0;
	
	
}

public class ThreadTest {

	public static void main(String[] args) {
		 new Thread(()->{
	            for (int i = 1; i <=10 ; i++) {
	                try {
	                	System.out.println("AA");
	                } catch (Exception e) {
	                    e.printStackTrace();
	                }
	            }
	        },"AAA").start();

	        new Thread(()->{
	            for (int i = 1; i <=10 ; i++) {
	                try {
	                	System.out.println("BB");
	                } catch (Exception e) {
	                    e.printStackTrace();
	                }
	            }
	        },"BBB").start();
	        new Thread(()->{
	            for (int i = 1; i <=10 ; i++) {
	                try {
	                	System.out.println("CC");
	                } catch (Exception e) {
	                    e.printStackTrace();
	                }
	            }
	        },"CCC").start();
	}
}
